package com.jcl.cloud.services.catchemail.client;

import org.springframework.web.client.RestTemplate;

public class CatchEmailClient {


    private RestTemplate restTemplate;


    public CatchEmailClient(RestTemplate restTemplate){
        this.restTemplate = restTemplate;
    }


    public void createTask(String crawlerId){
        String url = "http://catch-email-server/catch-email/api/v1/manager/tasks?crawlerId="+crawlerId;
        this.restTemplate.getForObject(url,Object.class);
    }
}
